package cn.edu.gdu.quizpractice.service;

import cn.edu.gdu.quizpractice.entity.Bank;
import cn.edu.gdu.quizpractice.entity.ChoiceQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author: Aubery
 * @Date: 2025-03-13-22:22
 * @Description:
 */
public interface IBankService extends IService<Bank> {

    boolean updateTotal(Integer id, Integer total);

    Bank findTotalByName(String name);

    Bank findBankById(Integer id);

    boolean updateByBankId(Bank bank);

    List<Bank> findAll();

    List<ChoiceQuestion> findQuestionsByBankName(String name);

    boolean audit(Bank bank);

    int getBankCount();

    int getTotalCount();

    List<Bank> showAuditedBanks();

    List<Bank> showUnAuditedBanks();

    Bank findBankInfoByName(String bankName);
}
